'''
练习：生成10-30之间能够被3或者5整除的数字
    [10,12,15,18,20,31,24,25,27,30]
'''
# 列表推导式
list = [i for i in range(10,31) if i%3 ==0 or i%5==0]
print(list)